


use crate::constant::*;

pub struct InState {
    pub in_statement_scope : bool,
    pub in_declaration_scope : bool,
    pub in_function_indentifier_once : bool,
    pub in_function_scope : bool,
    pub in_function_declarator: bool,
    pub in_block_item : bool,
    pub in_compound_statement : bool,
    pub in_declarator_kind : bool,
    pub in_label_statement : bool,
    pub in_else_statement : usize,
    pub in_member_operator : bool,
}

impl InState {

    pub fn new() -> Self {
        InState {
            in_statement_scope: false,
            in_declaration_scope: false,
            in_function_indentifier_once: false,
            in_function_scope: false,
            in_function_declarator: false,
            in_block_item : false,
            in_compound_statement : false,
            in_declarator_kind : false,
            in_label_statement : false,
            in_else_statement : 0,
            in_member_operator : false,
        }
    }
    
}
